//
//  CJInterstitialCustomEvent.m
//  Pods
//
//  Created by ly on 2024/3/4.
//

#import "CJInterstitialCustomEvent.h"

@implementation CJInterstitialCustomEvent

- (NSString *)networkUnitId {
    return self.serverInfo[@"slot_id"];
}
    
- (void)interstitialAdDidLoad:(nonnull CJInterstitialAd *)interstitialAd resourceId:(nonnull NSString *)resourceId {
    [self trackInterstitialAdLoaded:interstitialAd adExtra:nil];
}

- (void)interstitialAdLoadFailed:(nonnull CJInterstitialAd *)interstitialAd error:(nonnull NSError *)error {
    [self trackInterstitialAdLoadFailed:error];
}

- (void)interstitialAdOnClicked:(nonnull CJInterstitialAd *)interstitialAd {
    [self trackInterstitialAdClick];
}

- (void)interstitialAdOnClosed:(nonnull CJInterstitialAd *)interstitialAd {
    [self trackInterstitialAdClose:@{}];
}

- (void)interstitialAdOnShow:(nonnull CJInterstitialAd *)interstitialAd {
    [self trackInterstitialAdShow];
    
}

@end
